/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package testkryo;

import java.nio.ByteBuffer;

/**
 *
 * @author takao
 */
public class BufferUtil {

  public static void dump(ByteBuffer buffer) {

    System.out.print(buffer.toString() + " : ");
    byte[] array = buffer.array();
    for (int i = 0; i < array.length; i++) {
      System.out.print(array[i] + " ");
    }
    System.out.println(" ");
  }
}
